﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmRegistrarProveedor.aspx.cs" Inherits="SISLOG.Web.frmRegistrarProveedor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <asp:FormView ID="FormView1" runat="server" DataSourceID="ObjectDataSource1" 
        DefaultMode="Insert">
        <EditItemTemplate>
            idProveedor:
            <asp:TextBox ID="idProveedorTextBox" runat="server" 
                Text='<%# Bind("idProveedor") %>' />
            <br />
            nombreEmpresa:
            <asp:TextBox ID="nombreEmpresaTextBox" runat="server" 
                Text='<%# Bind("nombreEmpresa") %>' />
            <br />
            ruc:
            <asp:TextBox ID="rucTextBox" runat="server" Text='<%# Bind("ruc") %>' />
            <br />
            direccion:
            <asp:TextBox ID="direccionTextBox" runat="server" 
                Text='<%# Bind("direccion") %>' />
            <br />
            telefono:
            <asp:TextBox ID="telefonoTextBox" runat="server" 
                Text='<%# Bind("telefono") %>' />
            <br />
            email:
            <asp:TextBox ID="emailTextBox" runat="server" Text='<%# Bind("email") %>' />
            <br />
            representante:
            <asp:TextBox ID="representanteTextBox" runat="server" 
                Text='<%# Bind("representante") %>' />
            <br />
            <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" 
                CommandName="Update" Text="Actualizar" />
            &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" 
                CausesValidation="False" CommandName="Cancel" Text="Cancelar" />
        </EditItemTemplate>
        <InsertItemTemplate>
            idProveedor:
            <asp:TextBox ID="idProveedorTextBox" runat="server" 
                Text='<%# Bind("idProveedor") %>' />
            <br />
            nombreEmpresa:
            <asp:TextBox ID="nombreEmpresaTextBox" runat="server" 
                Text='<%# Bind("nombreEmpresa") %>' />
            <br />
            ruc:
            <asp:TextBox ID="rucTextBox" runat="server" Text='<%# Bind("ruc") %>' />
            <br />
            direccion:
            <asp:TextBox ID="direccionTextBox" runat="server" 
                Text='<%# Bind("direccion") %>' />
            <br />
            telefono:
            <asp:TextBox ID="telefonoTextBox" runat="server" 
                Text='<%# Bind("telefono") %>' />
            <br />
            email:
            <asp:TextBox ID="emailTextBox" runat="server" Text='<%# Bind("email") %>' />
            <br />
            representante:
            <asp:TextBox ID="representanteTextBox" runat="server" 
                Text='<%# Bind("representante") %>' />
            <br />
            <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" 
                CommandName="Insert" Text="Insertar" />
            &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" 
                CausesValidation="False" CommandName="Cancel" Text="Cancelar" />
        </InsertItemTemplate>
        <ItemTemplate>
            idProveedor:
            <asp:Label ID="idProveedorLabel" runat="server" 
                Text='<%# Bind("idProveedor") %>' />
            <br />
            nombreEmpresa:
            <asp:Label ID="nombreEmpresaLabel" runat="server" 
                Text='<%# Bind("nombreEmpresa") %>' />
            <br />
            ruc:
            <asp:Label ID="rucLabel" runat="server" Text='<%# Bind("ruc") %>' />
            <br />
            direccion:
            <asp:Label ID="direccionLabel" runat="server" Text='<%# Bind("direccion") %>' />
            <br />
            telefono:
            <asp:Label ID="telefonoLabel" runat="server" Text='<%# Bind("telefono") %>' />
            <br />
            email:
            <asp:Label ID="emailLabel" runat="server" Text='<%# Bind("email") %>' />
            <br />
            representante:
            <asp:Label ID="representanteLabel" runat="server" 
                Text='<%# Bind("representante") %>' />
            <br />
            <asp:LinkButton ID="NewButton" runat="server" CausesValidation="False" 
                CommandName="New" Text="Nuevo" />
        </ItemTemplate>
    </asp:FormView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        DataObjectTypeName="SISLOG.BusinessEntities.Proveedor" 
        InsertMethod="RegistrarProveedor" 
        onobjectcreating="ObjectDataSource1_ObjectCreating1" 
        onselecting="ObjectDataSource1_Selecting" 
        SelectMethod="GetAllFromProveedorByIdProveedor" 
        TypeName="SISLOG.BusinessLogic.ProveedorBL">
        <SelectParameters>
            <asp:Parameter Name="idProveedor" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>

</asp:Content>
